<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld" %>
<%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld" %>
	<form action="${contextPath }/admin/vendor/update.do" method="post">
<table width="100%">
	<c:if test="${obj != null}">
	<tbody>
		<tr>
			<td>编号</td>
			<td>${obj.id }<input name="vendor.id" type="hidden" value="${obj.id}"/></td>
		</tr>
		<tr>
			<td>公司名称</td>
			<td><input name="vendor.companyName" value="${obj.companyName }"/></td>
		</tr>
		<tr>
			<td>地址</td>
			<td><input name="vendor.address" value="${obj.address}"/></td>
		</tr>
		<tr>
			<td>公司首页</td>
			<td><a href="${obj.homeUrl}" target="_blank">${obj.homeUrl}</a></td>
		</tr>
		<tr>
			<td>联系电话</td>
			<td><input name="vendor.linkPhone" value="${obj.linkPhone }"/></td>
		</tr>
		<tr>
			<td>联系人</td>
			<td><input name="vendor.linkMan" value="${obj.linkMan }"/></td>
		</tr>
		<tr>
			<td>注册时间 </td>
			<td><fmt:formatDate pattern="yyyy-MM-dd hh:mm:ss" value="${obj.createTime}"/></td>
		</tr>
		<tr>
			<td>状态</td>
			<td><select name="vendor.vendorState">
					<c:if test="${obj.vendorState==0}">
						<option selected="selected" value="0">禁用</option>
					</c:if>
					<c:if test="${obj.vendorState!=0}">
						<option value="0">禁用</option>
					</c:if>
					<c:if test="${obj.vendorState==1}">
						<option selected="selected" value="1">审核</option>
					</c:if>
					<c:if test="${obj.vendorState!=1}">
						<option value="1">验证</option>
					</c:if>
					<c:if test="${obj.vendorState==2}">
						<option selected="selected" value="2">成功</option>
					</c:if>
					<c:if test="${obj.vendorState!=2}">
						<option value="2">成功</option>
					</c:if>
			    </select>
		</tr>
		<tr>
			<td>公司简介</td>
			<td><textarea name="vendor.description">${obj.description }</textarea></td>
		</tr>
		<tr>
			<td><input type="submit" value="保存"/></td><td></td>
		</tr>
	</tbody>
	</c:if>
</table>
	</form>